Tables [dbo].[InventoryTransactionLogCost]
Properties
PropertyValue
Row Count0
Created10:31:25 AM Tuesday, March 02, 2010
Last Modified11:40:03 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_InventoryTransactionLogCost: InventoryTransactionLogCostKeyInventoryTransactionLogCostKeyuniqueidentifier16
No
Foreign Keys FK_InventoryTransactionCost_InventoryTransactionMain: [dbo].[InventoryTransactionLogMain].InventoryTransactionLogKeyIndexes IX_InvetoryTransactionLogCost_InventoryTransactionLogKey: InventoryTransactionLogKeyInventoryTransactionLogKeyuniqueidentifier16
No
Indexes IX_InvetoryTransactionLogCost_ProductKey: ProductKeyProductKeyuniqueidentifier16
No
Quantitydecimal(18,8)9
No
TotalCostdecimal(18,4)9
No
QuantityReturneddecimal(18,8)9
No
SortOrderint4
No
Foreign Keys FK_InventoryTransactionLogCost_CostMethodRef: [dbo].[CostMethodRef].CostMethodCodeCostMethodCodeint4
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_InventoryTransactionLogCost: InventoryTransactionLogCostKeyPK_InventoryTransactionLogCostInventoryTransactionLogCostKey
Yes
IX_InvetoryTransactionLogCost_InventoryTransactionLogKeyInventoryTransactionLogKey
IX_InvetoryTransactionLogCost_ProductKeyProductKey
Foreign Keys Foreign Keys
NameColumns
FK_InventoryTransactionCost_InventoryTransactionMainInventoryTransactionLogKey->[dbo].[InventoryTransactionLogMain].[InventoryTransactionLogKey]
FK_InventoryTransactionLogCost_CostMethodRefCostMethodCode->[dbo].[CostMethodRef].[CostMethodCode]
SQL Script
CREATE TABLE [dbo].[InventoryTransactionLogCost]
(
[InventoryTransactionLogCostKey] [uniqueidentifier] NOT NULL,
[InventoryTransactionLogKey] [uniqueidentifier] NOT NULL,
[ProductKey] [uniqueidentifier] NOT NULL,
[Quantity] [decimal] (18, 8) NOT NULL,
[TotalCost] [decimal] (18, 4) NOT NULL,
[QuantityReturned] [decimal] (18, 8) NOT NULL,
[SortOrder] [int] NOT NULL,
[CostMethodCode] [int] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[InventoryTransactionLogCost] ADD CONSTRAINT [PK_InventoryTransactionLogCost] PRIMARY KEY CLUSTERED ([InventoryTransactionLogCostKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_InvetoryTransactionLogCost_InventoryTransactionLogKey] ON [dbo].[InventoryTransactionLogCost] ([InventoryTransactionLogKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_InvetoryTransactionLogCost_ProductKey] ON [dbo].[InventoryTransactionLogCost] ([ProductKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InventoryTransactionLogCost] ADD CONSTRAINT [FK_InventoryTransactionCost_InventoryTransactionMain] FOREIGN KEY ([InventoryTransactionLogKey]) REFERENCES [dbo].[InventoryTransactionLogMain] ([InventoryTransactionLogKey])
GO
ALTER TABLE [dbo].[InventoryTransactionLogCost] ADD CONSTRAINT [FK_InventoryTransactionLogCost_CostMethodRef] FOREIGN KEY ([CostMethodCode]) REFERENCES [dbo].[CostMethodRef] ([CostMethodCode])
GO
Uses